package com.business.service;

import java.util.List;
import org.apache.log4j.Logger;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.business.mapper.T_demoMapper;
import com.business.domain.T_demo;

@Service("t_demoService")
@Transactional
public class T_demoService{
	private static Logger log = Logger.getLogger(T_demoService.class.getName());

	@Resource
    private T_demoMapper t_demoMapper;


	public int save(T_demo obj){
		 return t_demoMapper.save(obj);
	}

	public int update(T_demo obj){
		return t_demoMapper.update(obj);
	}

	public int delete(T_demo obj){
		return t_demoMapper.delete(obj);
	}

	public T_demo findById(T_demo obj){
		return t_demoMapper.findById(obj);
	}

	public List findAll(T_demo obj ){
		 return t_demoMapper.findAll(obj);
	}

	public int findCountAll(T_demo obj ){
		 return t_demoMapper.findCountAll(obj);
	}
}
